/*
 * Copyright (c) 2011 Team A CS2340. All rights reserved.
 */
package edu.gatech.teama.doctorsoffice.net;

import edu.gatech.teama.doctorsoffice.server.DataModel;

/**
 * Describe success  message by extending message class
 * 
 * @author Dylan
 * @version 1.0
 */
public class SuccessMessage extends Message {
	
	/**
	 * initialize instance payload
	 * @param objPayload the boolean typed if successful
	 */
	public SuccessMessage(Boolean objPayload) {
		// Payload defined as Boolean(true) for success
		// Boolean(false) for non-success
		super(objPayload);
	}
	
	/**
	 * send message if successful
	 * @param model data to manipulate in this case User
	 * @return null
	 */
	public Message handle(final DataModel model) {
		// TODO Auto-generated method stub
		return null;
	}

	public String toString() { // $codepro.audit.disable methodJavadoc
		return this.getPayload().toString();
	}
	
}
